#include<stdlib.h>
#include "bitMatrix.h"

Matrix *getMatrix(int n){
    int i,j;
    BitVector<WORDTYPE>** matrix = NULL;
    Matrix *m = (Matrix*) malloc(sizeof(Matrix));

    m->size = n;
    matrix = (BitVector<WORDTYPE>**) malloc(sizeof(BitVector<WORDTYPE>*)*n);
    for(i = 0; i < n; i++){
        matrix[i] = new BitVector<WORDTYPE>(n);
    }

    printf("Allocated memory Matrix dimension %d \n",n);
    m->adj = matrix;
    return m;
}
